﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Downplay.Mechanics.Framework;
using Orchard.Environment.Extensions;

namespace MediaGarden.Images.Thumbnails
{
    [OrchardFeature("MediaGarden.Images.Thumbnails")]
    public class ThumbnailSocketHandler: SocketHandler
    {
        public ThumbnailSocketHandler() { }
        protected override void Displaying(SocketDisplayContext context)
        {
            if (( context.DisplayType=="Summary") && context.ConnectorType == "Thumbnail")
            {
                context.ConnectorDisplayType = "Thumbnail";
            }
        }

    }
}